/*
using MyGeneration/Template/NHibernate (c) by lujan99@usa.net
*/
using System;
using System.Collections;
using System.Collections.Generic;

namespace DokuzEylul.Sinav.Entities
{
	/// <summary>
	/// SoruCevap object for NHibernate mapped table 'SoruCevap'.
	/// </summary>
	[Serializable]
    public class SoruCevap : Unipa.Framework.Data.BaseDbEntity
	{
		#region Member Variables
		protected int m_sorucevapid;
		protected int m_sinavid;
		protected string m_soru;
		protected string m_a;
		protected string m_b;
		protected string m_c;
		protected string m_d;
		protected string m_e;
		protected string m_cevap;
		protected string m_aciklama;
		#endregion
		#region Constructors
			
		public SoruCevap() {}
					
		public SoruCevap(int sinavid, string soru, string a, string b, string c, string d, string e, string cevap, string aciklama) 
		{
			this.m_sinavid= sinavid;
			this.m_soru= soru;
			this.m_a= a;
			this.m_b= b;
			this.m_c= c;
			this.m_d= d;
			this.m_e= e;
			this.m_cevap= cevap;
			this.m_aciklama= aciklama;
		}

		#endregion
		#region Public Properties
		public  virtual int SoruCevapid
		{
			get { return m_sorucevapid; }
			set {m_sorucevapid= value; }
		}
		public  virtual int Sinavid
		{
			get { return m_sinavid; }
			set {m_sinavid= value; }
		}
		public  virtual string Soru
		{
			get { return m_soru; }
			set {m_soru= value; }
		}
		public  virtual string A
		{
			get { return m_a; }
			set {m_a= value; }
		}
		public  virtual string B
		{
			get { return m_b; }
			set {m_b= value; }
		}
		public  virtual string C
		{
			get { return m_c; }
			set {m_c= value; }
		}
		public  virtual string D
		{
			get { return m_d; }
			set {m_d= value; }
		}
		public  virtual string E
		{
			get { return m_e; }
			set {m_e= value; }
		}
		public  virtual string Cevap
		{
			get { return m_cevap; }
			set {m_cevap= value; }
		}
		public  virtual string Aciklama
		{
			get { return m_aciklama; }
			set {m_aciklama= value; }
		}
		#endregion
		
		#region Equals And HashCode Overrides
		/// <summary>
		/// local implementation of Equals based on unique value members
		/// </summary>
		public override bool Equals( object obj )
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != this.GetType() ) ) return false;
			SoruCevap castObj = (SoruCevap)obj;
			return ( castObj != null ) &&
			this.m_sorucevapid == castObj.SoruCevapid;
		}
		/// <summary>
		/// local implementation of GetHashCode based on unique value members
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 57;
			hash = 27 * hash * m_sorucevapid.GetHashCode();
			return hash;
		}
		#endregion
		
	}
}
